#ifndef  __EDITOREXCEPTION_H__
#define  __EDITOREXCEPTION_H__

// std
#include <string>

namespace editor {

class EditorException : public std::exception {
public:
    EditorException() {}
    virtual ~EditorException() {}
    EditorException(const char* m) : msg(m) {}
    EditorException(const std::string& m) : msg(m) {}
    virtual const char* what() const {return msg.c_str();}
    const std::string& message() const {return msg;}
private:
    std::string msg;
};

} // end of namespace editor

#endif   /* ----- #ifndef __EDITOREXCEPTION_H__  ----- */
